from django.urls import path

from userServer.UserDetailApi import get_user_detail, create_user_detail, update_user_detail
from userServer.codeApi import sendCode
from userServer.views import login, register, list, updatepwd, logout, checkUser, findPassword

#路由信息/user/
urlpatterns = [
    path('login', login),                  # 登录
    path('register', register),            # 注册
    path('list', list),                    # 用户列表
    path('updatepwd', updatepwd),          # 修改密码
    path('logout', logout),                # 注销
    path('checkUser', checkUser),          # 检测用户名
    path('sendCode', sendCode),             # 发送验证码
    path('findPassword', findPassword),     # 找回密码
    #--------UserDetailAPI-------------------------------
    path('getUserDetail', get_user_detail),   # 获取用户详情
    path('updateUserDetail', update_user_detail),   # 修改用户详情
    path('createUserDetail', create_user_detail),   # 创建用户详情
]